<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>天猫注册</title>
<link rel="stylesheet" href="css/register.css">
</head>
<body>
	<div id="box">
		<div id="header">
			<div class="header_left">
			
				<a href="login.jsp">亲，请登录</a>&nbsp;&nbsp;
				<a href="register.jsp">免费注册</a>&nbsp;&nbsp; 
				<a href="#">手机淘宝</a>&nbsp;&nbsp;
				<a href="#">网页无障碍</a>
			</div>
			<div class="header_right">
			<a href="index.jsp">淘宝网首页</a>&nbsp;&nbsp;
				<div class="myshow1">
					<a href="" class="mymove1">我的淘宝</a>&nbsp;&nbsp;
					<div id="mytaobao">
						<a href="#">已买到的宝贝</a><br>
						<a href="#">已卖出的宝贝</a>
					</div>
				</div>
				<img src="images/car.png">
				<a href="shopcar.jsp">购物车</a>&nbsp;&nbsp; 	
				<div class="myshow2">
					<a href="collect.do" class="mymove2">收藏夹</a>&nbsp;&nbsp;|&nbsp;&nbsp;	
					<div id="shoucangjia">
						<a href="#">收藏的宝贝</a><br>
						<a href="#">收藏的店铺</a>
					</div>
				</div>
				<a href="">商品分类</a>&nbsp;&nbsp;
				<a href="">免费开店</a>
			</div>
		</div>
		<div id="tbody">
			<div class="nav">
				<a><img src="images/tmallLogo.png" alt=""></a>
				<span>用户注册</span>
			</div>
			<div class="myform">
				<form action="register.do">
					<input type="text" name="username" placeholder = "请输入用户名"><br>
					<input type="password" name ="password" placeholder = "请输入密码"><br>
					<input type="text" name="phone" placeholder = "请输入手机号"><br>
					<input type="submit" value="注册" class="register">
				</form>
			</div>
			<div class="myview">
				<input type="checkbox" name="check">
				已阅读并同意以下协议<a href="#">淘宝平台服务协议、隐私权<br>
				政策、法律声明、支付宝及客户端服务协议</a>
			</div>
		</div>
		<div id="bottom">
			<ul>
				<li><a href="#">阿里巴巴集团｜</a></li>
				<li><a href="#">阿里巴巴国际站｜</a></li>
				<li><a href="#">阿里巴巴中国站｜</a></li>
				<li><a href="#">全球速卖通｜</a></li>
				<li><a href="#">淘宝网｜</a></li>
				<li><a href="#">天猫｜</a></li>
				<li><a href="#">聚划算｜</a></li>
				<li><a href="#">一淘｜</a></li>
				<li><a href="#">阿里妈妈｜</a></li>
				<li><a href="#">阿里云计算｜</a></li>
				<li><a href="#">云OS｜</a></li>
				<li><a href="#">万网｜</a></li>
				<li><a href="#">支付宝</a></li><br>
			</ul>
			<ul>
				<li>关于淘宝</li>
				<li>合作伙伴</li>
				<li>营销中心</li>
				<li>联系客服</li>
				<li>开放平台</li>
				<li>诚征英才</li>
				<li>联系我们</li>
				<li>网络地图</li>
				<li>法律声明及隐私权政策</li>
			</ul>
			<span>© 2022 Taobao.com 版权所有</span>
			<ul>
				<li>网络文化经营许可证：<a href="#">文网文[2021]040号｜</a></li>
				<li>增值电信业务经营许可证：浙B2-20080224-1｜</li>
				<li>信息网络传播视听节目许可证：1109364号</li>
			</ul>
		</div>
	</div>
</body>
<script src="js/jquery.min.js"></script>
<script>
	$(function(){
		register();
		$("input").change(function(){
			register();
		})
	})
	
	function register(){
		var $username = $("input[name='username']").val();
		var $password = $("input[name='password']").val();
		var $phone = $("input[name='phone']").val();
		var $checked = $("input[name='check']");
		if($username == "" || $password == "" || $phone == "" || !$checked.is(':checked')){
			$(".register").attr("disabled","disabled");
		}else{
			$(".register").removeAttr("disabled");
		}
	}
	
</script>
</html>